package foodmaterial.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import foodmaterial.action.valid.PaginationNoValid;
import foodmaterial.action.valid.PaginationSizeValid;
import foodmaterial.utils.Constants;

import java.util.Date;

/**
 * 供应商
 */
public class SupplierDto {

    private Long id ;
    private String name; //'名称',
    private String tel; //'联系电话',
    private String address ; // '地址',
    private String remark ; //'备注',
    private String credentials ;// '资质-有就放地址'
    private boolean hasCredentials ;
    @JsonFormat(pattern= Constants.DEFAULT_DATE_FORMAT,timezone="GMT+8")
    private Date expiredDate; // '资质到期时间'
    private Boolean enabled; //'启用标志-1启用-0禁用'
    @PaginationNoValid
    private Integer pageNo = 1;
    @PaginationSizeValid
    private Integer pageSize = 2000;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCredentials() {
        return credentials;
    }

    public void setCredentials(String credentials) {
        this.credentials = credentials;
    }

    public Date getExpiredDate() {
        return expiredDate;
    }

    public void setExpiredDate(Date expiredDate) {
        this.expiredDate = expiredDate;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isHasCredentials() {
        return hasCredentials;
    }

    public void setHasCredentials(boolean hasCredentials) {
        this.hasCredentials = hasCredentials;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
